package com.yadong.smarthome2.datastore;


class Tables {
    public static class Device {
        public static final String TABLE_NAME = Device.class.getSimpleName().toLowerCase();
        public static final String ID = "_id";
        public static final String CONNECTION_TYPE = "connection_type";
        public static final String NAME = "name";
        public static final String DESCRIPTION = "discription";
        public static final String ADDRESS = "address";
        public static final String MAC = "mac";
        public static final String DEVICE_INFO_VERSION = "device_info_version";
        public static final String TYPE = "type";
        public static final String [] ALL_PROJECTION = new String [] {
            ID, CONNECTION_TYPE, TYPE, NAME, DESCRIPTION, ADDRESS, MAC, DEVICE_INFO_VERSION
        };
    }

    public static class Function {
        public static final String TABLE_NAME = Function.class.getSimpleName().toLowerCase();
        public static final String ID = "_id";
        public static final String NAME = "name";
        public static final String CODE = "code";
        public static final String DEVICE_ID = "device_id";
        public static final String [] ALL_PROJECTION = new String [] {
            ID, NAME, CODE, DEVICE_ID
        };
    }

    public static class Argument {
        public static final String TABLE_NAME = Argument.class.getSimpleName().toLowerCase();
        public static final String ID = "_id";
        public static final String NAME = "name";
        public static final String TYPE = "data_type";
        public static final String LIMIT = "limits";
        public static final String FUNCTION_ID = "function_id";
        public static final String [] ALL_PROJECTION = new String [] {
            ID, NAME, TYPE, LIMIT, FUNCTION_ID
        };
    }

    public static class Status {
        public static final String TABLE_NAME = Status.class.getSimpleName().toLowerCase();
        public static final String ID = "_id";
        public static final String NAME = "name";
        public static final String TYPE = "data_type";
        public static final String DEVICE_ID = "device_id";
        public static final String [] ALL_PROJECTION = new String [] {
            ID, NAME, TYPE, DEVICE_ID
        };
    }

    public static class Rule {
        public static final String TABLE_NAME = Rule.class.getSimpleName().toLowerCase();
        public static final String ID = "_id";
        public static final String STATUSES = "statuses";
        public static final String MIN = "min";
        public static final String MAX = "max";
        public static final String JUST_RIGHT = "just_right";
        public static final String FUNCTION_CODE = "function_code";
        public static final String PARAMETERS = "parameters";
        public static final String DEVICE_ID = "device_id";
        public static final String TARGET_DEVICE_ID = "target_device_id";
    }
}
